import Vue from 'vue'
import VueRouter from 'vue-router'

import login from './routes/login'
import admin from './routes/admin'
Vue.use(VueRouter)

const routes = [
  login,
  admin
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

router.beforeEach((to, from, next) => {
  
  next()
})

export default router